<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>易买网 - 首页</title>
<link type="text/css" rel="stylesheet" href="css/style.css" />
<script type="text/javascript" src="scripts/function.js"></script>
</head>
<body>
<div id="header" class="wrap">
	<div id="logo"><img src="images/logo.gif" /></div>
	<div class="help"><a href="shopServlet" class="shopServlet">购物车</a><c:if test="${Uname == null}"><a href="login.jsp">登录</a></c:if>  <c:if test="${Uname != null}"><a href="#">用户:${Uname}</a></c:if><a href="register.jsp">注册</a><a href="guestbook.html">留言</a></div>
	<div class="navbar">
		<ul class="clearfix">
			<li class="current"><a href="#">首页</a></li>
			<li><a href="#">图书</a></li>
			<li><a href="#">百货</a></li>
			<li><a href="#">品牌</a></li>
			<li><a href="#">促销</a></li>
		</ul>
	</div>
</div>
<div id="childNav">
	<div class="wrap">
		<ul class="clearfix">
			<li class="first"><a href="#">音乐</a></li>
			<li><a href="#">影视</a></li>
			<li><a href="#">少儿</a></li>
			<li><a href="#">动漫</a></li>
			<li><a href="#">小说</a></li>
			<li><a href="#">外语</a></li>
			<li><a href="#">数码相机</a></li>
			<li><a href="#">笔记本</a></li>
			<li><a href="#">羽绒服</a></li>
			<li><a href="#">秋冬靴</a></li>
			<li><a href="#">运动鞋</a></li>
			<li><a href="#">美容护肤</a></li>
			<li><a href="#">家纺用品</a></li>
			<li><a href="#">婴幼奶粉</a></li>
			<li><a href="#">饰品</a></li>
			<li class="last"><a href="#">Investor Relations</a></li>
		</ul>
	</div>
</div>
<div id="main" class="wrap">
	<div class="lefter">
		<div class="box">
			<h2>商品分类</h2>
			<c:forEach items="${productClass}" var="v">
			<dl>
			<c:if test="${v.epc_parent_id == 0}">
				<dt>${v.epc_name}</dt></c:if>
				<c:if test="${v.epc_parent_id != 0}">
				<dd><a href="productListServlet?epc_id=${v.epc_id}">${v.epc_name}</a></dd></c:if>
				
			</dl>
			</c:forEach>
		</div>
		<div class="spacer"></div>
		<div class="last-view">
			<h2>最近浏览</h2>
			<dl class="clearfix">
				<dt><img src="images/product/0_tiny.gif" /></dt>
				<dd><a href="product-view.html">法国德菲丝松露精品巧克力500g/盒</a></dd>
				<dt><img src="images/product/0_tiny.gif" /></dt>
				<dd><a href="product-view.html">法国德菲丝松露精品巧克力500g/盒</a></dd>
			</dl>
		</div>
	</div>
	<div class="main">
	
		<div class="price-off">
			<h2>今日特价</h2>
			<ul class="product clearfix">
			<!-- item中放集合类  -->
			<c:forEach items="${allProduct}" var="v">
			<c:if test="${v.discount != 0 && v.discount !=100 }">
				<li>
					<dl>
						<dt><a href="productInfoServlet?id=${v.ep_id}" target="_blank"><img src="${v.ep_file_name}" /></a></dt>
						<dd class="title"><a href="productInfoServlet?id=${v.ep_id}" target="_blank">${v.ep_name}</a></dd>
						原价<dd class="price"><s>${v.ep_price}$</s></dd>
						<!--  特价<dd class="price">${v.ep_price*(v.discount/100)}</dd>-->
						特价<dd class="price">${v.now_price}$</dd>
					</dl>
				</li>
				</c:if>
				</c:forEach>
			</ul>
		</div>
		<div class="side">
			<div class="news-list">
				<h4>最新公告</h4>
				<ul>
					<li><a href="news-view.html" target="_blank">抢钱啦</a></li>
					<li><a href="news-view.html" target="_blank">抢钱啦</a></li>
					<li><a href="news-view.html" target="_blank">抢钱啦</a></li>
					<li><a href="news-view.html" target="_blank">抢钱啦</a></li>
					<li><a href="news-view.html" target="_blank">抢钱啦</a></li>
					<li><a href="news-view.html" target="_blank">抢钱啦</a></li>
					<li><a href="news-view.html" target="_blank">抢钱啦</a></li>
				</ul>
			</div>
			<div class="spacer"></div>
			<div class="news-list">
				<h4>新闻动态</h4>
				<ul>
					<li><a href="news-view.html" target="_blank">抢钱啦</a></li>
					<li><a href="news-view.html" target="_blank">抢钱啦</a></li>
					<li><a href="news-view.html" target="_blank">抢钱啦</a></li>
					<li><a href="news-view.html" target="_blank">抢钱啦</a></li>
					<li><a href="news-view.html" target="_blank">抢钱啦</a></li>
					<li><a href="news-view.html" target="_blank">抢钱啦</a></li>
					<li><a href="news-view.html" target="_blank">抢钱啦</a></li>
				</ul>
			</div>
		</div>
		<div class="spacer clear"></div>
		<div class="hot">
			<h2>热卖推荐</h2>
			<ul class="product clearfix">
			<!-- item中放集合类  -->
			<c:forEach items="${allProduct}" var="v1">
			<c:if test="${v1.hot_pro != 0}">
				<li>
					<dl>
					<!-- target="_blank" a标签 属性 另外开一个界面 -->
						<dt><a href="productInfoServlet?id=${v1.ep_id}" ><img src="${v1.ep_file_name}" /></a></dt>
						<dd class="title"><a href="productInfoServlet?id=${v1.ep_id}" >${v1.ep_name}</a></dd>
						<dd class="price">${v1.ep_price}$</dd>
						
					</dl>
				</li>
				</c:if>
				</c:forEach>
			</ul>
		</div>
	</div>
	<div class="clear"></div>
</div>
<div id="footer">
	Copyright &copy; 2010 湖南汽车工程职业学院 All Rights Reserved. 京ICP证1000001号
</div>
</body>
</html>
